home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
cmln0885.arc
/
CROSST4.LTG
< prev
next >
Wrap
Text File
|
1986-02-27
|
512b
|
18 lines
Crossthoughts Listing 4.
PP╠ codσ fo≥ thσ least-recently-useΣ (LRU⌐ pagσ replacemen⌠ ì
algorithm
FUNCTION Selected_Page() return integer
BEGIN
IF Found
THE╬ Updatσ timσ entry¼ iε thσ pagσ table¼ t∩ equa∞ systeφ ì
time return ()
ELSE
Search for table entry with least time value
return( Index pointing to entry with least time)
END IF
END Selected_Page